import java.util.Scanner;

public class java6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a =n%10;
        n=n/10;
        int c =n%10;
        n=n/10;
        int e =n%10;
        System.out.println(a);
        System.out.println(c);
        System.out.println(e);

    }
}
